C++ Backtracking - Bac 2011